package yourobot.config;

import java.awt.Color;

import yourobot.Wall.WallType;

/**
 * 
 * @author mehdimasrour
 *
 */
public class WallColorConfig {
	
	private final Color color;
	
	/**
	 * 
	 * @param type the type of Wall chooses the color
	 */
	public WallColorConfig(WallType type){
		switch (type){
			case ICE: 
				color = Color.BLUE;
				break;
				
			case STONE: 
				color = Color.GRAY;
				break;
				
			case WOOD: 
				color = new Color(222,184,135);
				break;
				
			default : 
				color = Color.BLACK;
				break;
		}
	}
	
	/**
	 * 
	 * @return the color of the wall
	 */
	public Color getColor(){
		return color;
	}
	
}
